package com.example.demo.control;

import com.example.demo.service.C_YearService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@ResponseBody
@Controller
public class C_YearControl {
    @Resource
    C_YearService yearService;
    @PostMapping("/c/year")
    public String YearControl(){
        String a =yearService.pidnum();
        return a;
    }
}
